<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');  
class assetsload {
    private $CI;
    private $page;
    private $master_init;

    function assetsload(){
        $this->CI = & get_instance();
        $this->CI->load->model('translator');
    } 

    function getassets($cur_page,$master){

        $this->page = $cur_page;
        $this->master_init = $master;
        $this->CI->carabiner->css('core.css');       
        $this->CI->carabiner->css('jqueryslidemenu.css');
        $this->CI->carabiner->css('simple-modal.css'); 
        $this->CI->carabiner->js('jquery-1.4.2.min.js'); 
        $this->CI->carabiner->js('jqueryslidemenu.js');
        $this->CI->carabiner->js('jquery.simplemodal.js'); 
        $this->CI->carabiner->js('core.js');
        switch($this->page){
            case 'home':            $this->home();              break;
            case 'accomodation':    $this->accommodation();     break; 
            case 'excursions':      $this->excursions();        break; 
            case 'tours':           $this->tours();             break; 
            case 'adventurestours': $this->adventurestours();   break; 
            case 'mice':            $this->mice();              break;
            case 'cruisehandling':  $this->cruisehandling();    break;
            case 'news':            $this->latestnews();        break;
        }
    }
    function home(){
        $this->CI->carabiner->css('nivo-slider.css');                  
        $this->CI->carabiner->js('jquery.nivo.slider.pack.js');
        $this->CI->carabiner->js('home.js');
        $this->CI->carabiner->js('swfobject.js');
    }
    function accommodation(){
        $this->CI->carabiner->css('lightbox.css');                   
        $this->CI->carabiner->js('lightbox/prototype.js'); 
        $this->CI->carabiner->js('lightbox/scriptaculous.js?load=effects,builder'); 
        $this->CI->carabiner->js('lightbox/lightbox.js');                    
        $this->CI->carabiner->js('show-popup.js');
        $this->CI->carabiner->js('color.plugin.js');
        $this->CI->carabiner->js('jquery.animation.easing.js');
    }
    function excursions(){
        $this->CI->carabiner->css('nivo-slider.css');                    
        $this->CI->carabiner->js('jquery.nivo.slider.pack.js');                    
        $this->CI->carabiner->js('jquery.animation.easing.js');   
        $this->CI->carabiner->js('show-popup.js');           
    }
    function tours(){
        $this->CI->carabiner->css('nivo-slider.css');                    
        $this->CI->carabiner->js('jquery.nivo.slider.pack.js');
        $this->CI->carabiner->js('show-popup.js');                    
    }
    function adventurestours(){
        $this->CI->carabiner->js('show-popup.js');                    
    }
    function mice(){
        $this->CI->carabiner->css('nivo-slider.css');                  
        $this->CI->carabiner->js('jquery.nivo.slider.pack.js');
    }
    function cruisehandling(){
        $this->CI->carabiner->css('nivo-slider.css');               
        $this->CI->carabiner->js('jquery.nivo.slider.pack.js');
    }
    function latestnews(){             
        $this->CI->carabiner->js('latest.news.js');
    }
}